package com.ldy.gen.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 店铺经营内容表
 * </p>
 *
 * @author ldy
 * @since 2023-09-29 15:02:29
 */
@Getter
@Setter
@TableName("store_content")
@ApiModel(value = "StoreContent对象", description = "店铺经营内容表")
public class StoreContent implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("店铺id")
    @TableField("store_id")
    private Long storeId;

    @ApiModelProperty("类目id")
    @TableField("type_id")
    private Integer typeId;

    @ApiModelProperty("类目名称")
    @TableField("type_name")
    private String typeName;

    @ApiModelProperty("标题名称")
    @TableField("title")
    private String title;

    @ApiModelProperty("摘要")
    @TableField("brief")
    private String brief;

    @ApiModelProperty("数量")
    @TableField("count")
    private Integer count;

    @ApiModelProperty("价格")
    @TableField("price")
    private BigDecimal price;

    @ApiModelProperty("搜索关键字列表")
    @TableField("keywords")
    private String keywords;

    @ApiModelProperty("图片地址")
    @TableField("img_url")
    private String imgUrl;

    @ApiModelProperty("视频地址")
    @TableField("video_url")
    private String videoUrl;

    @ApiModelProperty("是否推荐，默认值0，0不推荐，1推荐")
    @TableField("is_recommand")
    private Boolean isRecommand;

    @ApiModelProperty("审核状态，默认值0，0未审核，1审核通过，2审核未通过")
    @TableField("check_state")
    private Boolean checkState;

    @ApiModelProperty("是否上架，默认值0，0下架，1上架")
    @TableField("is_put_on")
    private Boolean isPutOn;

    @ApiModelProperty("销量")
    @TableField("sales_count")
    private Long salesCount;

    @ApiModelProperty("评论数量")
    @TableField("comment_count")
    private Integer commentCount;

    @ApiModelProperty("好评数量")
    @TableField("positive_comment_count")
    private Integer positiveCommentCount;

    @ApiModelProperty("差评数量")
    @TableField("negative_comment_count")
    private Integer negativeCommentCount;

    @ApiModelProperty("点赞数")
    @TableField("like_count")
    private Integer likeCount;

    @ApiModelProperty("折扣")
    @TableField("discount")
    private BigDecimal discount;

    @ApiModelProperty("是否启用，1表示启用，0表示禁用")
    @TableField("enabled")
    private Boolean enabled;

    @ApiModelProperty("数据创建时间")
    @TableField("create_time")
    private LocalDateTime createTime;

    @ApiModelProperty("数据最后修改时间")
    @TableField("update_time")
    private LocalDateTime updateTime;

    @ApiModelProperty("数据创建者")
    @TableField("creator")
    private String creator;

    @ApiModelProperty("数据更新者")
    @TableField("updater")
    private String updater;


}
